<?php
$i = 0; 
foreach ($model as $data){
	$model[$i] = $data;
	$i+=1;
}
?>


<div id="steps">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'jenis-simpanan-form',
	'enableAjaxValidation'=>false,
)); ?>

	<fieldset class="step">
	
	<p>
		<?php echo $form->label($model[0],'JENIS_SIMPANAN'); ?>
		<input readonly="readonly" size="50" maxlength="50" name="JenisSimpananTetap[JENIS_SIMPANAN]" id="JenisSimpanan_JENIS_SIMPANAN" type="text" value="<?php echo $model[0]->JENIS_SIMPANAN; ?>">
		<?php echo $form->error($model[0],'JENIS_SIMPANAN'); ?>
	</p>

	<p>
		<?php echo $form->label($model[0],'BESAR_SIMPANAN'); ?>
		<input name="JenisSimpananTetap[BESAR_SIMPANAN]" id="JenisSimpanan_BESAR_SIMPANAN" type="text" value="<?php echo $model[0]->BESAR_SIMPANAN; ?>">			
		<?php echo $form->error($model[0],'BESAR_SIMPANAN'); ?>
	</p>
	
	<p>
		<?php echo $form->label($model[1],'JENIS_SIMPANAN'); ?>
		<?php echo $form->textField($model[1],'JENIS_SIMPANAN',array('size'=>50,'maxlength'=>50,'readonly'=>'readonly')); ?>
		<?php echo $form->error($model[1],'JENIS_SIMPANAN'); ?>
	</p>

	<p>
		<?php echo $form->label($model[1],'BESAR_SIMPANAN'); ?>
		<?php echo $form->textField($model[1],'BESAR_SIMPANAN'); ?>
		<?php echo $form->error($model[1],'BESAR_SIMPANAN'); ?>
	</p>


	<p class="submit">
		
		<button id="registerButton" type="submit">Simpan</button>&nbsp;
		<button id="registerButton" type="button" onclick="window.location.href='<?php echo Yii::app()->createUrl("JenisSimpanan/Wajib/");?>'">Kembali</button>
	</p>
	</fieldset>
<?php $this->endWidget(); ?>

</div><!-- form -->